package fr.hoteia.appengine.archetype.server.web.util;

import java.util.Locale;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 
 */
public interface RequestUtil {

	/**
     * 
     */
	public String getContentLanguage(Locale locale);
	
	/**
     * 
     */
	public String getRequestLocaleCountryCodeIso3166(HttpServletRequest request);

	/**
     * 
     */
	public void handleRequestLanguage(HttpServletRequest request, HttpServletResponse response);
	
	/**
     * 
     */
	public Locale getCurrentLocale(HttpServletRequest request);
	
	/**
     * 
     */
	public String getCurrentCountryCode(HttpServletRequest request);
	
	/**
     * 
     */
	public String getCurrentCountryCode(final Locale locale);
	
	/**
     * 
     */
	public String getCurrentLanguageCode(HttpServletRequest request);
	
	/**
     * 
     */
	public String getCurrentLanguageCode(final Locale locale);
	
	/**
     * 
     */
	public String getLastRequestUrl(final HttpServletRequest request);
	
	/**
     * 
     */
	public String getRequestUrl(final HttpServletRequest request, int position);
	
	
}
